package org.jeecg.modules.xxgx.cxtj.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.xxgx.cxtj.mapper.CsXxFptjMapper;
import org.jeecg.modules.xxgx.cxtj.param.XxFptjKehuParam;
import org.jeecg.modules.xxgx.cxtj.param.XxFptjSeParam;
import org.jeecg.modules.xxgx.cxtj.param.XxFptjSlParam;
import org.jeecg.modules.xxgx.cxtj.service.ICsXxFptjService;
import org.jeecg.modules.xxgx.cxtj.vo.XxFptjKehuDTO;
import org.jeecg.modules.xxgx.cxtj.vo.XxFptjSeDTO;
import org.jeecg.modules.xxgx.cxtj.vo.XxFptjSlDTO;
import org.jeecg.modules.xxgx.cxtj.vo.XxFptjSlMxDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CsXxFptjServiceImpl implements ICsXxFptjService {
    @Autowired
    private CsXxFptjMapper csXxFptjMapper;

    /**
     * 发票统计（按税率）合计
     * @param param
     * @return
     */
    @Override
    public XxFptjSlDTO getXxFpxxtjHj(XxFptjSlParam param) {
        return csXxFptjMapper.getXxFpxxtjHj(param);
    }

    /**
     * 发票统计（按税率）明细
     * @param param
     * @return
     */
    @Override
    public List<XxFptjSlMxDTO> getXxFpxxtjMx(XxFptjSlParam param) {
        return csXxFptjMapper.getXxFpxxtjMx(param);
    }

    /**
     * 发票统计（按客户）明细
     * @param param
     * @return
     */
    @Override
    public IPage<XxFptjKehuDTO> getXxFpxxtjKehu(IPage<XxFptjKehuDTO> page, XxFptjKehuParam param) {
        return csXxFptjMapper.getXxFpxxtjKehu(page,param);
    }

    @Override
    public List<XxFptjKehuDTO> getXxFpxxtjKehu(XxFptjKehuParam param) {
        return csXxFptjMapper.getXxFpxxtjKehu(param);
    }

    /**
     * 发票统计（按税额）
     * @param param
     * @return
     */
    @Override
    public List<XxFptjSeDTO> getXxFpxxtjSe(XxFptjSeParam param) {
        return csXxFptjMapper.getXxFpxxtjSe(param);
    }
}
